package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RepaircarMapper;
import com.ruoyi.system.domain.Repaircar;
import com.ruoyi.system.service.IRepaircarService;
import com.ruoyi.common.support.Convert;

/**
 * 修车服务 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class RepaircarServiceImpl implements IRepaircarService 
{
	@Autowired
	private RepaircarMapper repaircarMapper;

	/**
     * 查询修车服务信息
     * 
     * @param repaircarId 修车服务ID
     * @return 修车服务信息
     */
    @Override
	public Repaircar selectRepaircarById(Integer repaircarId)
	{
	    return repaircarMapper.selectRepaircarById(repaircarId);
	}
	
	/**
     * 查询修车服务列表
     * 
     * @param repaircar 修车服务信息
     * @return 修车服务集合
     */
	@Override
	public List<Repaircar> selectRepaircarList(Repaircar repaircar)
	{
	    return repaircarMapper.selectRepaircarList(repaircar);
	}
	
    /**
     * 新增修车服务
     * 
     * @param repaircar 修车服务信息
     * @return 结果
     */
	@Override
	public int insertRepaircar(Repaircar repaircar)
	{
	    return repaircarMapper.insertRepaircar(repaircar);
	}
	
	/**
     * 修改修车服务
     * 
     * @param repaircar 修车服务信息
     * @return 结果
     */
	@Override
	public int updateRepaircar(Repaircar repaircar)
	{
	    return repaircarMapper.updateRepaircar(repaircar);
	}

	/**
     * 删除修车服务对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteRepaircarByIds(String ids)
	{
		return repaircarMapper.deleteRepaircarByIds(Convert.toStrArray(ids));
	}
	
}
